package com.aliyun.heiyu.powermaster.server.dao;

import com.aliyun.heiyu.powermaster.server.dao.entity.Strategy2DeviceEntity;

import java.sql.SQLException;
import java.util.List;

public interface Strategy2DeviceDao {
    boolean insert(Strategy2DeviceEntity entity);
    boolean update(Strategy2DeviceEntity entity);
    boolean delete(Object[] deviceList);
    boolean delete(int strategyID, Object[] deviceList);
    boolean deleteStrategyIdOrInDevices(int strategyID, Object[] deviceList);
    boolean deleteByStrategyIDs(Object[] ids);
    boolean deleteByDeviceId(String deviceId) throws SQLException;
    List<Strategy2DeviceEntity> findByStrategyID(Integer strategyID);
    List<Strategy2DeviceEntity> findAll();
    Strategy2DeviceEntity findByDeviceId(String sn);
}
